<template>
  <div>
    Render
    <div>
      <Render :level="9"></Render>
    </div>
    <el-button @click="exportDocx">
      Export word.
    </el-button>
  </div>
</template>

<script>
import Render from './Render'
import saveAs from 'file-saver'
export default {
  components: {
    Render,
  },
  data() {
    return {
      title: '呵呵',
      content: '',
    }
  },
  methods: {
    exportDocx() {
      const docBlob = this.$utils.exportHtmlToDocx(this.content)
      saveAs(docBlob, 'test.docx')
    },
  },
}
</script>
